package main

import (
	"io"
	"log"
	"net/http"
)

func main() {
	go func() {
		// 执行调用
		rsp, err := http.Get("http://go-multiroute:3000/route1")
		if err != nil {
			log.Printf("Call err: " + err.Error())
			return
		}

		text, _ := io.ReadAll(rsp.Body)

		// 打印响应
		log.Printf("status:%d text: %s\n", rsp.StatusCode, text)
	}()
	select {}
}
